import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    // component: () => import(/* webpackChunkName: "about" */ '../views/Brands.vue')
    component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue')
  }, {
    // 会员中心
    path: '/personal',
    name: 'personal',
    component: () => import(/* webpackChunkName: "about" */ '../views/PersonalCenter.vue')
  }, {
    // 品牌街
    path: '/Brands',
    name: 'Brands',
    component: () => import(/* webpackChunkName: "about" */ '../views/Brands.vue')
  }, {
    // 海外好货
    path: '/TheOverseasGood',
    name: 'TheOverseasGood',
    component: () => import(/* webpackChunkName: "about" */ '../views/TheOverseasGood.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
